<?php
namespace app\index\controller;
use app\admin\controller\Common;
use think\Db;
use think\Controller;
use think\Request;
use think\Loader;


class Index extends Base {
    //首页
    public function index(){
//  	dump(session('userinfo.ThirdPartyCardID'));
//  	dump(session('userinfo'));
//      session('card_id','81000001');
		$this->assign("mobile",session('userinfo.Mobile'));	
        return $this->fetch();
    }
    
	public function coupons(){
		$actionId = input("actionid");
		$banners = Db::name('banner')
 			->where('action_id','=',$actionId)
 			->where('status',1)
            ->select();
		$this->assign("banners",$banners);	
		$this->assign("mobile",session('userinfo.Mobile'));	
		$this->assign("actionid",$actionId);
        return $this->fetch('coupon');
	}
}
